//
//  UIImageView+RoundImage.m
//  SportRing
//
//  Created by elwin on 11/7/14.
//  Copyright (c) 2014 HotOne. All rights reserved.
//

#import "UIImageView+RoundImage.h"

@implementation UIImageView (RoundImage)

- (void)setRoundImage:(UIImage *)image
{
    [self.layer setCornerRadius:CGRectGetHeight([self bounds]) / 2];
    self.layer.masksToBounds = YES;
    self.layer.borderWidth = 5;
    self.layer.borderColor = [[UIColor clearColor] CGColor];
    self.layer.contents = (id)[image CGImage];
}

@end
